Replication Archive 1.0
23 May 2005 
"Space is More than Geography: Using Spatial Econometrics in the Study 
of Political Economy"
Nathaniel Beck, Kristian Skrede Gleditsch and Kyle Beardsley

Please direct all replication questions to the authors:
nathaniel.beck@nyu.edu
ksg@essex.ac.uk
kbeardsley@ucsd.edu

***********************************************************************

This data archive contains 1 Matlab script and 12 data files as 
described below. All analyses use Matlab 6.5, Release 13.

***********************************************************************

* Beck_etal_analyses-final.m
This Matlab script replicates all the results in the paper, using the 
data files.

The spatial econometric estimation routines used in this file can be 
obtained from http://www.spatial-econometrics.com. The SAW routine, 
which produces spatial autoregressive (spatial lag) estimation of 
models with two weight matrices, was received directly from James LeSage 
on 6 April 2005.

***********************************************************************

Data for Table 1

*basedata98.csv
This comma delimited file contains information for 170 countries in 1998. 
It is used in the replication of Table 1 in the paper.

id- A unique identifier for each observation. See "obsids98.csv" to 
translate to the Gleditsch and Ward (1999) modified COW country codes.

demaut- The Polity IV index generated by subtracting the autocracy score 
from the democracy score. Where data were missing, they were interpolated 
from the Freedom House political rights and civil liberties data.

loggdppc - The natural log of gdp per capita, from the Penn World Tables.


*dmat98.csv
This comma delimited file contains the non-zero distance weight 
information for the observations in "basedata98.csv".

ida- An identifier for the first state in a dyad.

idb - An identifier for the second state in a dyad.

weight- An indicator if the dyad is of countries within 500km of each 
other.


*tmat98.csv
This comma delimited file contains the non-zero trade weight information 
for the observations in "basedata98.csv".

ida- An identifier for the first state in a dyad.

idb - An identifier for the second state in a dyad.

trade- The amount of total trade (exports + imports) between the states 
in the dyad, in millions of US dollars.


*obsids98.csv
This comma delimited file allows the country id values in "basedata98.csv",
"dmat98.csv" and "tmat98.csv" to be translated into the Gleditsch and 
Ward (1999) modified COW country codes.

obs- The concatenated Gleditsch and Ward (1999) modified COW country 
code and year.

obs2 - The unique id used in these analyses.

***********************************************************************

Data for Table 2

*dyaddata_europe98_log-no origins 3+.csv
This comma delimited file contains information for 1500 European Dyads 
in 1998.

dyadid- a unique identifier for each dyad.

acode- The Gleditsch and Ward (1999) modified COW country code for the 
first actor in the dyad.

bcode- The Gleditsch and Ward (1999) modified COW country code for the 
second actor in the dyad.

logtrade- The natural log of 1+ the export flows from the first actor 
in the dyad to the second. 

logdem- The natural log of 11+ the lowest democracy minus autocracy 
score from the Polity IV data, with interpolated data from the 
Freedom House political rights and civil liberties scores where needed.

logapop- The natural log of the population (thousands) of the first 
actor in the dyad.

logbpop- The natural log of the population (thousands) of the second 
actor in the dyad.

logargdppc- The natural log of the real gdp per capita in 1996 dollars 
of the first actor in the dyad.

logbrgdppc- The natural log of the real gdp per capita in 1996 dollars 
of the second actor in the dyad.

logs- The natural log of the weighted global "s" score of alliance-
portfolio similarity within the dyad.

logdist- The natural log of 1+ the distance between capital cities of 
the actors in the dyad (holding contiguous actors at 0 before adding 1).

logmid- The natural log of 1+ an indicator of whether there was a 
Militarized Interstate Dispute between the dyadic actors (1= no MID, 2=MID).


*dyadmat_europe98_BA-no origins 3+.csv
This comma delimited file contains the non-zero reverse-dyad weight 
information for the observations in "dyaddata_europe98_log-no origins 3+.csv".

c1- The dyad id for the first dyad in the pair.

c2- The dyad id for the second dyad in the pair.

weight- An indicator of whether the first actor in the first dyad is the 
same as the second actor in the second dyad, and if the second actor in 
the first dyad is the same as the first actor in the second dyad.


*dyadmat_europe98_no BA-no origins 3+.csv
This comma delimited file contains the non-zero similar-dyad weight 
information for the observations in "dyaddata_europe98_log-no origins 3+.csv".

c1- The dyad id for the first dyad in the pair.

c2- The dyad id for the second dyad in the pair.

weight- An indicator of whether the first dyad contains any of the actors in 
the second dyad. Dyad pairs listed in "dyadmat_europe98_BA-no origins 3+.csv" 
are excluded, as are dyad pairs of the exact same dyads.

***********************************************************************

Data for Table 3

*dyaddata_africa98_log.csv
This comma delimited file contains information for 2550 African Dyads 
in 1998.

dyadid- a unique identifier for each dyad.

acode- The Gleditsch and Ward (1999) modified COW country code for the 
first actor in the dyad.

bcode- The Gleditsch and Ward (1999) modified COW country code for the 
second actor in the dyad.

logtrade- The natural log of 1+ the export flows from the first actor 
in the dyad to the second. 

logdem- The natural log of 11+ the lowest democracy minus autocracy 
score from the Polity IV data, with interpolated data from the 
Freedom House political rights and civil liberties scores where needed.

logapop- The natural log of the population (thousands) of the first 
actor in the dyad.

logbpop- The natural log of the population (thousands) of the second 
actor in the dyad.

logargdppc- The natural log of the real gdp per capita in 1996 dollars 
of the first actor in the dyad.

logbrgdppc- The natural log of the real gdp per capita in 1996 dollars 
of the second actor in the dyad.

logs- The natural log of the weighted global "s" score of alliance-
portfolio similarity within the dyad.

logdist- The natural log of 1+ the distance between capital cities of 
the actors in the dyad (holding contiguous actors at 0 before adding 1).

logmid- The natural log of 1+ an indicator of whether there was a 
Militarized Interstate Dispute between the dyadic actors (1= no MID, 2=MID).


*dyadmat_africa98_BA.csv
This comma delimited file contains the non-zero reverse-dyad weight 
information for the observations in "dyaddata_africa98_log.csv".

c1- The dyad id for the first dyad in the pair.

c2- The dyad id for the second dyad in the pair.

weight- An indicator of whether the first actor in the first dyad is the 
same as the second actor in the second dyad, and if the second actor in 
the first dyad is the same as the first actor in the second dyad.


*dyadmat_africa98_no BA.csv
This comma delimited file contains the non-zero similar-dyad weight 
information for the observations in "dyaddata_africa98_log.csv".

c1- The dyad id for the first dyad in the pair.

c2- The dyad id for the second dyad in the pair.

weight- An indicator of whether the first dyad contains any of the actors in 
the second dyad. Dyad pairs listed in "dyadmat_europe98_BA-no origins 3+.csv" 
are excluded, as are dyad pairs of the exact same dyads.

***********************************************************************

Data for Table 4

*dyaddata_morrow.csv
This comma delimited file has TSCS information on 42 dyads. The data 
are from Morrow et al. (1999).

id- a unique identifer for each dyad-year.

year- year of dyad.

numi- COW country code for the first actor in the dyad.

numj- COW country code for the second actor in the dyad.

xijl- The natural log of the exports (millions of dollars) from the 
first actor to the second actor.

gnpil- The natural log of the GNP (millions of dollars) of the first 
actor in a dyad.

gnpjl- The natural log of the GNP (millions of dollars) of the second 
actor in a dyad.

popil- The natural log of the population (millions) of the first actor 
in a dyad.

popjl- The natural log of the population (millions) of the second actor 
in a dyad.

distancel- The natural log of the distance between the actors in the dyad.

demdl- The natural log of whether both states are democracies (2) or 
not (1).

midl- The natural log of whether there was a Militarized Interstate 
Dispute between the two states (2) or not (1).

multiall- The natural log of whether the there is an alliance between the 
states under multipolarity (2) or not (1).

biall- The natural log of whether the there is an alliance between the 
states under bipolarity (2) or not (1).

lagxijl- The natural log of the one-year lag of the exports (millions 
of dollars) from the first state to the second state.


*dyadmat_morrow_1.csv
This comma delimited file contains the non-zero similar-dyad weight 
information for the observations in "dyaddata_morrow.csv".

c1- The dyad id for the first dyad in the pair.

c2- The dyad id for the second dyad in the pair.

weight- An indicator of whether the first dyad contains any of the 
actors in the second dyad. Dyad pairs of the exact same dyads are excluded.

***********************************************************************

